projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79c2c25
)
x86: baytrail: acpi: Hide internal UART per GNVS setting
author
Bin Meng
<
[email protected]
>
Fri, 17 Jun 2016 09:13:17 +0000
(
02:13
-0700)
committer
Bin Meng
<
[email protected]
>
Tue, 12 Jul 2016 05:46:01 +0000
(13:46 +0800)
If global NVS says internal UART is not enabled, hide it in the ASL
code so that OS won't see it.
Signed-off-by: Bin Meng <
[email protected]
>
Reviewed-by: George McCollister <
[email protected]
>
Tested-by: George McCollister <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/x86/include/asm/arch-baytrail/acpi/lpc.asl
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl
b/arch/x86/include/asm/arch-baytrail/acpi/lpc.asl
index 22f0d68f4dd5df100a38332595c31d9718075793..fe34d3271c870b3c9f925884c573a32777ec0c5b 100644
(file)
--- a/
arch/x86/include/asm/arch-baytrail/acpi/lpc.asl
+++ b/
arch/x86/include/asm/arch-baytrail/acpi/lpc.asl
@@
-119,17
+119,14
@@
Device (LPCB)
Method(_STA, 0, Serialized)
{
- /*
- * TODO:
- *
- * Need to hide the internal UART depending on whether
- * internal UART is enabled or not so that external
- * SuperIO UART can be exposed to system.
- */
- Store(1, UI3E)
- Store(1, UI4E)
- Store(1, C1EN)
- Return (STA_VISIBLE)
+ If (LEqual(IURE, 1)) {
+ Store(1, UI3E)
+ Store(1, UI4E)
+ Store(1, C1EN)
+ Return (STA_VISIBLE)
+ } Else {
+ Return (STA_MISSING)
+ }
}